package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.KnowledgeBaseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
/**
 * @Author mingliang
 * @Description 知识库dao
 * @Date 2022/6/21 15:14
 **/
@Mapper
@Repository
public interface KnowledgeBaseDao {
    Integer insert(KnowledgeBaseEntity entity);

    void insertBatch(List<KnowledgeBaseEntity> list);

    KnowledgeBaseEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(KnowledgeBaseEntity entity);

    List<KnowledgeBaseEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    Integer updateBatch(@Param("list")List<KnowledgeBaseEntity> knowledgeBaseEntityList, @Param("corpid") String corpid);
}